/*
 * @Author: linZeJian
 * @Date: 2022-04-25 14:39:26
 * @LastEditors: linZeJian
 * @LastEditTime: 2022-04-25 15:00:52
 * @Description: 
 */
import router from './router'
import store from './store'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'

NProgress.configure({ showSpinner: false })

store.dispatch("user/Login")
router.beforeEach((to, from, next) => {
  NProgress.start()
  next()
})

router.afterEach(() => {
  NProgress.done()
})
